package com.foruo.demo.jdbc.controller;

import com.foruo.demo.jdbc.service.SimpleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 简单的controller
 * @author GaoYuan
 */
@RestController
public class SimpleController {

    @Autowired
    SimpleService simpleService;

    @GetMapping("get")
    public Object get() throws Exception{
        return simpleService.get();
    }

}
